<?php

namespace app\company\model;

use app\common\model\BaseModel;
use app\common\model\CompanyWarehouse;
use think\model\relation\BelongsTo;

class CompanyWarehouseLocation extends BaseModel
{
    public function area(): BelongsTo
    {
        return $this->belongsTo(CompanyWarehouseArea::class, 'area_id');
    }

    public function warehouse(): BelongsTo
    {
        return $this->belongsTo(CompanyWarehouse::class, 'warehouse_id');
    }
}